package com.demo.entity;


/*
* 水果类
* */
public abstract class Fruits {

    private String name;//名称

    private double price;//价格

    private double discount = 1;//折扣


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getDiscount() {
        return discount;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }

    public Fruits(String name, double price) {
        this.name = name;
        this.price = price;
    }

    public Fruits(String name, double price, double discount) {
        this.name = name;
        this.price = price;
        this.discount = discount;
    }

    public Fruits(){

    }


}
